package org.mall.modules.cash.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.mall.common.util.jsonschema.Long2StringSerializer;
import org.mall.common.util.jsonschema.String2LongDeserialize;
import org.mall.modules.pojo.order.bo.OrdersBO;

import java.util.List;

@Data
public class SellerCashInfoVO {
    /**id*/
    @JsonDeserialize(using = String2LongDeserialize.class)
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long id;
    private String sellerId;
    private String shopId;
    /**总金额*/
    private Integer orderPresentPrice;
    @Excel(name = "总金额", width = 15)
    @ApiModelProperty(value = "总金额")
    private Integer presentPrice;
    /**订单ID*/
    @JsonDeserialize(using = String2LongDeserialize.class)
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long orderId;
    /**状态*/
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private Integer status;
    private String username;
    private String mobile;
    private String shopName;
    /**
     * 商户已提现金额
     */
    private Integer hasCash;
    /**
     * 商户可提现金额
     */
    private Integer availableCash;
    /**
     * 商户提现中的金额
     */
    private Integer cashingMoney;

    private List<OrdersBO> orderDetails;
}
